package com.my.mvpframe.base.dagger;

import com.my.mvpframe.ui.lesson.LessonActivity;
import com.my.mvpframe.ui.lesson.LessonModule;
import com.my.mvpframe.ui.main.MainActivity;
import com.my.mvpframe.ui.main.MainModule;
import com.my.mvpframe.ui.task.TaskActivity;
import com.my.mvpframe.ui.task.TaskModule;

import dagger.Module;
import dagger.android.ContributesAndroidInjector;

/**
 * Created by tomey on 2018/2/1.
 */

@Module
abstract class ActivityBindingModule {
    @ActivityScoped
    @ContributesAndroidInjector(modules = TaskModule.class)
    abstract TaskActivity taskActivity();

    @ActivityScoped
    @ContributesAndroidInjector(modules = MainModule.class)
    abstract MainActivity mainActivity();

    @ActivityScoped
    @ContributesAndroidInjector(modules = LessonModule.class)
    abstract LessonActivity lessonActivity();
}
